<?php
if (count($data['orders']) == 0)
    return;
?>

<div id="orderSearchList">
    <h3> Your order status: </h3>
    <?php foreach ($data['orders'] as $item) : ?>
        <?php if (count($item->products) <= 0) continue; ?>
        <div class="orderItem">
            <p class="orderDetails">
                Your order was placed on <?php print format_date($item->created, 'custom', variable_get('uc_date_format_default', 'Y-m-d')); ?>
                <br />
                Order status: <?php echo _get_order_status($item->order_status) ?>
            </p>
            <ul>
                <caption>Product List:</caption>
                <?php foreach ($item->products as $p) : ?>
                    <li><?php print $p->title; ?></li>        
                <?php endforeach; ?>
            </ul>
        </div>
    <?php endforeach; ?>
</div>

<div>Attention, please allow 8-12 weeks for us to start the first ship of your order after we process your order.</div>